class Test46{
    public static int sum_s(int n){
        int sum = n;
        boolean res = (n>0) &&((sum += sum_s(n-1)) > 0);
        return sum;
    }

    public static void main(String[] args) {
        System.out.println(sum_s(4));
    }
}